gdk/wayland: Use serial of the latest implicit grab available
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 19 Oct 2022 10:46:09 +0000 (12:46 +0200)
committerSimon McVittie <smcv@debian.org>
Fri, 18 Nov 2022 22:12:24 +0000 (22:12 +0000)
commit6641beb75f5fc5510e51415c33371e1b8d0d621d
tree0adb4a9b9b60ee48ec7bae450b8795008a87058d
parent33a2b296ba193bdaecdd0e4f048f761c129783f6
gdk/wayland: Use serial of the latest implicit grab available

When getting the serial for primary/clipboard selections we used a
function that largely relied on a GdkEvent being passed. We have
another available function that looks up the most recent serial
given the ongoing touch/tablet input as well.

This is the second best, compared to actually knowing the
input/device from the event that was received by the UI an triggered
the clipboard operation, and is already in use in other places
(e.g. window dragging). It is valid for these situations too.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5250
Origin: upstream, 4.8.3, commit:873c304a9460ab30c4acf8e922605412cbededf8

Gbp-Pq: Name gdk-wayland-Use-serial-of-the-latest-implicit-grab-availa.patch
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkprimary-wayland.c